//
//  ASAchiInfoDetailVC.m
//  AttendenceSys
//
//  Created by 窦芳俊 on 16/3/30.
//  Copyright © 2016年 窦芳俊. All rights reserved.
//

#import "ASAchiInfoDetailVC.h"

@interface ASAchiInfoDetailVC ()

@end

@implementation ASAchiInfoDetailVC

- (instancetype)initWithAchiInfo:(AchievementInfo*)info
{
    self = [super init];
    if (self)
    {
        _achiInfo = info;
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [self initUI];
}

- (void)initUI
{
    // _timeLabel
    _timeLabel = [[UILabel alloc] initWithFrame:CGRectZero];
    _timeLabel.frame = CGRectMake(0, 0, self.view.frame.size.width, 20);
    [_timeLabel setBackgroundColor:[UIColor clearColor]];
    [_timeLabel setTextColor:RGB(51, 51, 51)];
    [_timeLabel setFont:[UIFont systemFontOfSize:15]];
    [self.view addSubview:_timeLabel];
    
    // _contentField
    _contentField = [[UITextField alloc] init];
    _contentField.frame = CGRectMake(0, 25, self.view.frame.size.width, self.view.frame.size.height - 25);
    _contentField.borderStyle = UITextBorderStyleRoundedRect;
    [self.view addSubview:_contentField];
    
    _timeLabel.text = _achiInfo.achiDate;
    _contentField.text = _achiInfo.achiContent;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}


@end
